package com.fl.niu.dao;

import com.fl.niu.model.AdminPermission;
import com.fl.niu.model.AdminRolePermissionRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 自定义角色权限关系管理Dao
 * @author admin
 */
public interface RolePermissionRelationDao {
    /**
     * 批量插入角色和权限关系
     * @param list
     * @return
     */
    int insertList(@Param("list") List<AdminRolePermissionRelation> list);

    /**
     * 根据角色获取权限
     * @param roleId
     * @return
     */
    List<AdminPermission> getPermissionList(@Param("roleId") Long roleId);
}
